<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>IupMglLabel</title>
<link rel="stylesheet" type="text/css" href="../../style.css">
<style type="text/css">
.style1 {
	border-width: 0;
}
.auto-style1 {
	font-size: large;
}
.auto-style2 {
	text-align: center;
}
</style>
</head>
<body>
<div id="navigation">
  <ul>
    <li><a href="#Creation">Creation</a></li>
    <li><a href="#Attributes">Attributes</a></li>
    <li><a href="#Callbacks">Callbacks</a></li>
    <li><a href="#Notes">Notes</a></li>
    <li><a href="#Examples">Examples</a></li>
    <li><a href="#SeeAlso">See Also</a></li>
  </ul>
</div>

<h2>IupMglLabel<span class="auto-style1"> (since 3.11.1)</span></h2>

  <p>
  Creates a label interface element using MathGL so it can display TeX symbols. 
  It inherits from <a href="iup_mglplot.html">IupMglPlot</a>.</p>

<h3><a name="Creation">Creation</a></h3>
<pre>Ihandle* IupMglLabel(const char *<strong>title</strong>); [in C]
iup.mgllabel{[title = <strong>title</strong>: string]} -&gt; (<strong>ih</strong>: ihandle) [in Lua]
mgllabel(<strong>title</strong>) [in LED]</pre>
  <p><b>
  title</b>: Text to be shown on the label. It can be NULL. It will set the 
  LABELTITLE attribute.</p>
  <p>
  <u>Returns:</u> the identifier of the 
  created element, or NULL if an error occurs.</p>

<h3><a name="Attributes">Attributes</a></h3>


<p>The 
  <strong>IupMglLabel</strong> element handle all attributes defined for a
<a href="iup_mglplot.html">IupMglPlot</a> control.</p>
<blockquote>
  <hr>
</blockquote>


  <p>
  <a href="../attrib/iup_bgcolor.html">BGCOLOR</a>: By default will use the background color of the native parent.</p>


<p><strong>LABELTITLE</strong> (<font SIZE="3">non inheritable</font>): Label's 
text. </p>
<p><strong>LABELFONT</strong> (<font SIZE="3">non inheritable</font>): same as
<strong>DRAWFONT</strong>.</p>
<p><strong>LABELFONTSIZE</strong> (<font SIZE="3">non inheritable</font>): same 
as <strong>DRAWFONTSIZE</strong>.</p>
<p><strong>LABELFONTSTYLE</strong> (<font SIZE="3">non inheritable</font>): same 
as <strong>DRAWFONTSTYLE</strong>.</p>



<h3><a name="Notes">Notes</a></h3>


<p>All MARGIN* attributes are set to NO. All AXS_* attributes are set to NO. 
EXPAND and BORDER are set to NO. And POSTDRAW_CB callback is implemented.</p>


<p>The <strong>IupMglLabel</strong> can NOT contain images. 
</p>
<p>The Natural size is NOT computed from its contents. The application must set 
SIZE or RASTERSIZE and then set <strong>LABELFONTSIZE</strong> to obtain the 
desired result. MathGL does not have the same font scale as IUP.</p>


<h3><a name="Examples">Examples</a></h3>
<pre>lbl = <strong>IupMglLabel</strong>("\\int \\alpha \\sqrt{sin(\\pi x)^2 + \\gamma_{i_k}} dx");
IupSetAttribute(lbl, "RASTERSIZE", "400x80");
IupSetAttribute(lbl, "LABELFONTSIZE", "10");
</pre>
<p class="auto-style2">
<img alt="IupMglLabel" src="images/iup_mgllabel.png"></p>
<p><a href="../../examples/">Browse for Example Files</a></p>
<h3><a name="SeeAlso">See Also</a></h3>

<p><a href="iup_mglplot.html">IupMglPlot</a>.</p>


</body>

</html>